package com.ms.education.course.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 班级
 * </p>
 *
 * @author ms
 * @since 2023-02-24
 */
@Getter
@Setter
@TableName("edu_classroom")
@ApiModel(value = "Classroom对象", description = "班级")
public class Classroom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("班级名")
    @TableField("name")
    private String name;

    @ApiModelProperty("班级宣传标语")
    @TableField("sign")
    private String sign;

    @ApiModelProperty("加入班级的费用")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("封面")
    @TableField("cover")
    private String cover;

    @ApiModelProperty("优先级")
    @TableField("priority")
    private Integer priority;

    @ApiModelProperty("班级状态 Draft未发布  Normal已发布")
    @TableField("status")
    private String status;

    @ApiModelProperty("逻辑删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty("操作权限")
    @TableField(exist = false)
    private Integer role;

    @ApiModelProperty("班级创建者")
    @TableField(exist = false)
    private Integer teacherId;


}
